#!/bin/bash

#PBS -M khtsoi@gmail.com
#PBS -m bae
#PBS -N TorqueOpenMPI
#PBS -l cput=2:00:00
#PBS -l nodes=16:admxrc5t2:c1060:ppn=1
#PBS -j oe

if [ -n "$PBS_O_WORKDIR" ]; then
  echo "change directory to $PBS_O_WORKDIR ..."
  cd $PBS_O_WORKDIR
fi

mpirun -hostfile $PBS_NODEFILE userapp
